package com.csg.ses.vo.login;

/**
 * @auther wangjun
 * @date 2020/11/16
 */
public class UserContext {
    private static ThreadLocal<UserView> userContext = new ThreadLocal<UserView>();

    public static void setUserView(UserView userView) {
        userContext.set(userView);
    }

    public static UserView getUserView() {
        return userContext.get();
    }

    public static void remove() {
        userContext.remove();
    }
}